package io.wongxd.demo.page.emo

import androidx.compose.runtime.Composable
import androidx.compose.ui.tooling.preview.Preview
import androidx.lifecycle.lifecycleScope
import io.wongxd.demo.page.emo.config.SchemeConst
import io.wongxd.demo.page.emo.config.runQuietly
import io.wongxd.demo.page.emo.config.schemeBuilder
import io.wongxd.solution.baseView.BaseComposeToolBarFgt

class FgtEmo : BaseComposeToolBarFgt() {
    override fun lazyInit() {
        lifecycleScope.launchWhenResumed {
            schemeBuilder(SchemeConst.SCHEME_ACTION_HOME).runQuietly()
            requireActivity().finish()
        }
    }

    override val title: String
        get() = "emo"

    @Composable
    override fun Render() {

    }

    @Preview(showBackground = true, backgroundColor = 0xffffffff)
    @Composable
    fun RenderPreView() {

    }
}